package com.shujia.exer;

public class Teacher extends Farmer {

    double classFee;

    public void printYearSalary() {
        System.out.println(basePay * 12 + classFee * 250);
    }
}
